package com.wallet.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wallet.dao.MetaDao;
import com.wallet.entity.Meta;
import com.wallet.entity.example.MetaExample;
import com.wallet.entity.result.JsonResult;
import com.wallet.service.BaseService;

@Service
public class MetaServiceImpl implements BaseService<Meta, MetaExample> {
	
	@Autowired
	private MetaDao metaDao;

	@Override
	public int save(Meta t) {
		return metaDao.insert(t);
	}

	@Override
	public int insertBatch(List<Meta> list) {
		return metaDao.insertBatch(list);
	}

	@Override
	public int del(Integer id) {
		return metaDao.deleteByPrimaryKey(id);
	}

	@Override
	public int upd(Meta t) {
		return metaDao.updateByPrimaryKey(t);
	}

	@Override
	public Meta getDetail(Integer id) {
		return metaDao.selectByPrimaryKey(id);
	}

	@Override
	public JsonResult showPage(Integer page, Integer size) {
		return null;
	}

	@Override
	public Integer getCount() {
		return metaDao.selectCount();
	}

	@Override
	public List<Meta> selectAll() {
		return metaDao.selectAll();
	}

	@Override
	public List<Meta> selectByExample(MetaExample example) {
		// TODO Auto-generated method stub
		return null;
	}
	
}
